//---------------------------------------------------------------------------

#ifndef ProcH
#define ProcH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "IBC.hpp"
#include <DB.hpp>
#include "MemDS.hpp"
#include "DBAccess.hpp"
#include "utils.h"
//---------------------------------------------------------------------------
class TfrProc : public TForm
{
__published:	// IDE-managed Components
	TIBCQuery *dsetKOL_PRIB;
	TIBCDataSource *dsKOL_PRIB;
	TIBCQuery *dsetTARIF;
	TIBCDataSource *dsTARIF;
	TIBCDataSource *dsPROC_LG;
	TIBCQuery *dsetPROC_LG;
	TIBCDataSource *dsPOL_NEW_TRF_OTKL_PRIB;
	TIBCQuery *dsetPOL_NEW_TRF_OTKL_PRIB;
	TIBCQuery *dsetPROV_ADR;
	TIBCDataSource *dsPROV_ADR;
	TIBCDataSource *dsVID_RASH;
	TIBCQuery *dsetVID_RASH;
	TIBCQuery *dsetTEK_MONTH;
	TIBCDataSource *dsTEK_MONTH;
private:	// User declarations
public:		// User declarations
int STAT_OTKL;
String DBDir, DBP, Us, IP_Us, Rol_Us, ServN, DBname, DBFDir;
	__fastcall TfrProc(TComponent* Owner);
void __fastcall TfrProc::FullBox(TComboBox *cbFulling, String Sprav, String Pole);
void __fastcall TfrProc::cbBox(TComboBox *cbKLSFCT, int KOD);
int __fastcall TfrProc::KOD_HC_KL(String NAIM_KOD, int KOD);
  String __fastcall TfrProc::NaimTarif(int KOD_TF);
 void __fastcall TfrProc::Full_Lb_Box(TListBox *lbFulling, String Sprav, String Pole);
 String __fastcall TfrProc::GOR_VOD(int KOD_TARIF);
 String __fastcall TfrProc::MonthProp(String Month);
 String __fastcall TfrProc::RashPeriod();
 String __fastcall TfrProc::MonthPropDAT(String Month);
 String __fastcall TfrProc::DATA_PLUS_GOD(String DATA,int KOL_GOD);
  int __fastcall TfrProc::Dostup(int KOD_INT,String FORM);
  int __fastcall TfrProc::OKR_DO_ZELOGO(float d);
  int __fastcall TfrProc::KOL_DAY(String MES);
  String  __fastcall TfrProc::ADRES(int NOM);
  String  __fastcall TfrProc::CHAR_DAT(String DAT );
  int __fastcall TfrProc::ProverkaPrib(int NOM, int TARIF, int KART);
  String __fastcall TfrProc::NATH_MES(String DAT);
  void __fastcall TfrProc::POL_NEW_TRF_OTKL_PRIB(int X,int NOM, int KLASS, int STAT_OTKL,int GOR_VODA);
  void __fastcall TfrProc::ACTION_JURNAL(String TABLES,int SOBITIE, int NOM, String FORMS,int ST_TRANZ);
  int __fastcall TfrProc::PROV_ADRESA(int PUNKT, int VU, int UL, String DOM, String DOM2);
  int __fastcall TfrProc::VID_RASH(int TARIF);
  void __fastcall TfrProc::ZAP_TARIF(int TARIF, int PRIZ, int NOM);
  String __fastcall TfrProc::KONEZ_NEDELI(String DATA);
  void __fastcall TfrProc::OTKL_SCH(int NOM, String DAT_OTKL,int PRITH, int KOD_SCH, String DAT_UST);
  String __fastcall TfrProc::Val1_po_Val2(String Tab, String FindF,
							 String PoF, String PoVal2, String Usl="CONTAINING");
	void __fastcall TfrProc::TEK_MONTH(int NOM);
  };

//---------------------------------------------------------------------------
extern PACKAGE TfrProc *frProc;
//---------------------------------------------------------------------------
#endif
